package cliente_diseno2011;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class BoletaPanel extends JPanel {

	private Image imagen;

	public BoletaPanel(Image img) {
		imagen = img;

	}

	public void setImagen(Image img) {
		imagen = img;
	}

	@Override
	public void paint(Graphics g) {

		g.drawImage(imagen, 0, 0, getWidth(), getHeight(),

		this);

		setOpaque(false);

		super.paint(g);

	}

}
